package com.wyp.utils.redis.prekey.pre;

import com.wyp.utils.redis.prekey.BaseKeyPrefix;

/**
 * @author: Oliver
 */
public class MSKey extends BaseKeyPrefix {
    public MSKey(String prefix) {
        super(prefix);
    }

    public MSKey(Integer expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static MSKey IS_GOODS_OVER = new MSKey("isGOver");
    public static MSKey MS_PATH_REALLY = new MSKey(60, "path");
    public static MSKey MS_VERIFY_CODE = new MSKey(300, "verifyoode");
    public static MSKey MS_ACCESS_NUM = new MSKey(15, "access");

    /**
     * 返回失效时间为expireSeconds，prefix为access的MSKey
     *
     * @param expireSeconds
     * @return
     */
    public static MSKey withExpire(int expireSeconds) {
        return new MSKey(expireSeconds, "access");
    }

}
